//
// Created by xunx on 2018/12/8.
//

#include "Display.h"
#include "Sprite.h"
#include "Resource.h"
#include "../Game/Minesweeping.h"


Display::Display() {
    Init();
}

void Display::Show() {
    for (auto& x:Resource::GetSpriteResource()) {
        if (x.second)
            x.second->Draw();
    }
    a->GameStart();
}

void Display::Init() {
    a = new Minesweeping();
}






